//
//  AppDelegate.swift
//  Residual_memmem
//
//  Created by 武振磊 on 16/7/20.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        SetUpAppearance()
      
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.redColor()
        window?.rootViewController = MainViewController()
        
        window?.makeKeyAndVisible()
        return true
    }

}

extension AppDelegate{
    
    func SetUpAppearance(){
        UINavigationBar.appearance().tintColor = HMAppearanceTintColor
        UITabBar.appearance().tintColor = HMAppearanceTintColor
    }
}